<extend name="Public:common" />
<!--/sidebar-->
<block name="content">
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i>
            <a href="__MODULE__/Index/index">首页</a>
            <span class="crumb-step">&gt;</span>
            <a class="crumb-name" href="__MODULE__/Rbac/manager">管理员列表</a>
            <span class="crumb-step">&gt;</span>
            <span>编辑帐号</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="__MODULE__/Rbac/rbedit" method="post" id="login" name="login" >
                   <input type='hidden' name='action' value='edit' />
                   <input type='hidden' name='uid' value='<{$ulist.id}>' />
                   <input type='hidden' name='p' value='<{$p}>' />
                    <table class="insert-tab" width="100%">
                        <tbody><tr>
                            <th width="120"><i class="require-red">*</i>帐号：</th>
          						 <td>
                               <input class="common-text input" type='text' id='username' dataType="Custom"  name='username' size='30' regexp="^\w{4,15}$"  msg="（输入字母、数字或下划线（5-16位），必须以字母开头）" value='<{$ulist.username}>' onBlur="Validator.Validate(this)"/>
                               <span id='usernameWarning'></span>
                            </td> 
             
                             <tr>
                                <th><i class="require-red">*</i>密码：</th>
                                <td>
                                    <input class="common-text input" id='pwd' dataType=Custom name="password" size="30"  regexp="^\w{4,15}$" msg="（输入字母、数字或下划线（5-16位）不修改请留空）"  type="password"  value='' onBlur="Validator.Validate(this)" />
                                	<span id='passwordWarning'>不修改请留空</span>
                                </td>
                            </tr>
                            <tr>
                                <th>中文名: </th>
                                <td>
                                	<input class="common-text input" id='cname' dataType=Custom name="nickname" size="30" regexp="^[\u4E00-\u9FA5]{2,10}$" msg="（输入字母、请输入汉字）"  type="text" value='<{$ulist.nickname}>' onBlur="Validator.Validate(this)" />
                                	<span id='chinanameWarning'></span>
                                	</td>
                            </tr>
                             <tr>
                                <th>角色: </th>
                                <td>
                               		<volist name='rlist' id='vo'>
	                                	<input type='checkbox' name='role_id[]' value='<{$vo.id}>' <?php echo in_array($vo['id'],$ulist['roleid'])?"checked":"";?> />&nbsp;&nbsp;<{$vo.name}>&nbsp;&nbsp;
                               		</volist>
                                </td>
                            </tr>
                            <tr>
                                <th>邮箱：</th>
                                <td>
									<input class="common-text input"  id='em' dataType=Custom name="email" size="30" regexp="^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+" msg="（邮箱格式）" value='<{$ulist.email}>' type="text" onBlur="Validator.Validate(this)" />
									<span id='emailWarning'></span>
								</td>
                            </tr>
                            <tr>
                                <th>排序：</th>
                                <td>
									<input class="common-text input" id='sort' dataType=Custom name="sort" size="1" type="text" regexp="^[0-9]+$" msg="（请填写数字)" value='<{$ulist.sort}>' onBlur="Validator.Validate(this)" />
									<span id='sortWarning'></span>
								</td>
                            </tr> 
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="编辑" type="submit">
                                    <input class="btn btn6" onclick="location.href='__MODULE__/Rbac/index' " value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
    </block>